<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
    <title> 化学品环境管理申报及数据库信息系统</title>
    <link rel="stylesheet" href="/static/css/entypo.css" >
    <link rel="stylesheet" href="/static/css/bootstrap.min.css" >
    <link rel="stylesheet" href="/static/css/neon-core.min.css" >
    <link rel="stylesheet" href="/static/css/neon-theme.min.css">
    <link rel="stylesheet" href="/static/css/neon-forms.min.css" >
    <link rel="stylesheet" href="/static/css/style.css" >
    <link rel="stylesheet" href="/static/css/white.css" >
    <link rel="stylesheet" href="/static/js/demo/css/style.css" >
    <script src="/static/js/My97DatePicker/WdatePicker.js"></script>
    <script src="/static/js/jquery-1.8.3.min.js"></script>
    <script src="/static/js/jquery.showLoading.min.js"></script>
    <script src="/static/js/common.js"></script>
    <script src="/static/js/main-gsap.js"></script>
    {% block css %}
    {% endblock %}
</head>
<body class="claro page-body  skin-white" >
<header class="logo-env">
    <div class="header">
        <div class="system_info">{{ request.session.user.username }}欢迎回来 &nbsp;&nbsp;|&nbsp;&nbsp;<a href="/"> 注销<i class="entypo-logout right"></i></a>
        </div>
        <div class="navbar-header">
            <a href="/index2/" class="navbar-brand"> 化学品登记软件</a>
        </div>
    </div>
</header>

<div class="page-container">

    <div class="sidebar-menu">
        <ul id="main-menu" class="">
            <li class="root-level" id="menu_4">
                <a href="/index2/"><i class="entypo-layout"></i><span>填报概况</span></a>
            </li>
            <li class="root-level has-sub" id="menu_0">
                <a href=""><i class="entypo-air"></i><span>企业基本信息</span></a>
                <ul>
                    <li id="menu_0_0"><a href="/basic/detail/"><span>企业基本情况表</span></a></li>
                    {% if disable == '1' %}

                    {% else %}
                    <li id="menu_0_1"><a href="/basic/map/"><span>企业地图</span></a></li>
                    <li id="menu_0_2"><a href="/basic/prevention/detail/"><span>环境保护目标信息</span></a></li>
                    <li id="menu_0_3"><a href="/basic/law/detail/"><span>法律法规遵守情况</span></a></li>
                    {% endif %}
                </ul>
            </li>
             {% if disable == '1' %}
                 {% else %}
                 <li class="root-level has-sub" id="menu_1">
                     <a href=""><i class="entypo-book"></i><span>化学品信息</span></a>
                     <ul>
                         <li id="menu_1_0"><a href="/chemicals/materialList/"><span>原辅料信息</span></a></li>
                         <li id="menu_1_1"><a href="/chemicals/impList/"><span>中间产品信息</span></a></li>
                         <li id="menu_1_2"><a href="/chemicals/productList/"><span>产品信息表</span></a></li>
                     </ul>
                 </li>
                 <li class="root-level has-sub" id="menu_2">
                     <a href=""><i class="entypo-cup"></i><span>生产及贮存设备设施信息</span></a>
                     <ul>
                        <li id="menu_2_0"><a href="/facilities/enterLayout/"><span>厂区布置</span></a></li>
                        <li id="menu_2_1"><a href="/facilities/productAreaList/"><span>生产区</span></a></li>
                        <li id="menu_2_2"><a href="/facilities/storageAreaList/"><span>贮罐区</span></a></li>
                     </ul>
                 </li>
                 <li class="root-level has-sub" id="menu_3">
                     <a href=""><i class="entypo-rocket"></i><span>化学品污染防治信息</span></a>
                     <ul>
                         <li id="menu_3_0"><a href="/pollution/prevention/detail/"><span>污染物基本信息</span></a></li>
                         <li id="menu_3_1"><a href="/pollution/release_transfer/transferList/"><span>特征化学污染物信息</span></a></li>
                     </ul>
                 </li>
            {% endif %}
        </ul>
    </div>
    <div class="main-content">
        <div class="row">
            {% block content %}
            {%endblock%}
        </div>
        <!-- Footer -->
        <footer class="main">
            &copy; 2015 <strong>envbase</strong> All right reserved
        </footer>
    </div>
</div>


<div id="myModal" class="modal fade bs-example-modal-sm">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <!-- <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">Modal title</h4>
      </div> -->
      <div class="modal-body">
        <p>您确定删除这条数据吗？</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
        <button id="delBtn" type="button" class="btn btn-green">确定</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal fade in" id="myMapModal" aria-hidden="false">
    <div class="modal-dialog" style="width:485px;padding-top:8%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 class="modal-title" id="">选取坐标</h3>
            </div>
            <div class="modal-body">
                <div data-dojo-type="dijit.layout.BorderContainer" design="headline" gutters="false" style="position:relative;width:100%; height:400px;">
                <div style="margin-top: 10px">
                    <div style="border: 1px solid #cccccc;padding: 10px;border-radius: 4px;">
                        <div data-dojo-type="dijit.layout.BorderContainer" design="headline" gutters="false" style="position:relative;width:100%; height:400px;">
                            <div id="map" dojotype="dijit.layout.ContentPane" region="center" style="overflow:hidden; height:400px;">
                                <div id="osmCopy" style="position:absolute; color:black;font-weight:bold;right:10px; bottom:10px; z-Index:999;"></div>
                            </div>
                        </div>
                        <div class="mapEdit">
                            <div class="panel-body">
                                <div id="toolbar" style="padding-left: 0px;padding-top:10px;padding-right: 0px;">
                                    <div class="btn-group toolbar" >
                                        <label id="point" class="btn btn-white" onclick="drowWaterPoint()">
                                            <input id="sensor" style="display:none" value=""/>
                                            <img src="/static/images/point.png">
                                        </label>
                                        <label id="undo" class="btn btn-white " onclick="undoManager.undo()">
                                            <img src="/static/images/undo.png">
                                        </label>
                                        <label id="redo" class="btn btn-white" onclick="undoManager.redo();">
                                            <img src="/static/images/redo.png">
                                        </label>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
                <input name="geo_points" id='geo_points' type='hidden' />
                <input name="geo_center_point" id='geo_center_point' type='hidden' />
                <input name="geo_extent" id='geo_extent' type='hidden' />
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-info" data-dismiss="modal" id="submit">确定</button>
                <button type="button" class="btn btn-white" data-dismiss="modal"  onclick="undoManager.undo();">撤销编辑</button>
            </div>
        </div>
    </div>
</div>

</body>
    <script src="/static/js/jquery.url.js"></script>
    <script src="/static/js/main-gsap.js"></script>
    <script src="/static/js/jquery-ui-1.10.3.minimal.min.js" ></script>
    <script src="/static/js/bootstrap.js"></script>
    <script src="/static/js/resizeable.js"></script>
    <script src="/static/js/neon-custom.js"></script>
    <script src="/static/js/neon-demo.js"></script>
    <!--表单验证插件,引用style.css需注意，可能与其他css冲突-->
    <script src="/static/js/demo/js/Validform_v5.3.2_min.js"></script>
    <script>
        var demo = "";
        $(function(){
            $('#'+primary_menu).addClass('active opened');
            $('#'+primary_menu).children('ul').addClass("visible");
            $('#'+sub_menu).addClass('active');
            demo=$(".formSubmit").Validform({
                tiptype:3,
                tipSweep:true,
                label:".label",
                postonce:true,
                ignoreHidden:true,
                showAllError:true,
                datatype:{
                  "rmb":/^\[0-9]{1,6}([\.]\[0-9]{1,3})?$/,
                  "rmbs":/^$|^\[0-9]{1,6}([\.]\[0-9]{1,3})?$/,
                  "number":/^[0-9]*[1-9][0-9]*$/,
                  "xhx":/^$|^[0-9-]*$/,
                  "sz":/^$|^[0-9]*$/,
                  "str":/^[a-zA-Z]+$/,
                  "select":/^[1-9]*[1-9][0-9]*$/,
                  "img":/^(([a-zA-Z0-9_]+):(\\.+))|([a-zA-Z0-9_]+)(.JPEG|.jpeg|.JPG|.jpg|.GIF|.gif|.BMP|.bmp|.PNG|.png)$/,
                  "imgs":/^$|^(([a-zA-Z0-9_]+):(\\.+))|([a-zA-Z0-9_]+)(.JPEG|.jpeg|.JPG|.jpg|.GIF|.gif|.BMP|.bmp|.PNG|.png)$/
                }
            });
        });
        function beforeDelete(url)
        {
            $('#myModal').modal("show");
            $("#delBtn").click(function(){
                location.href = url
            })
        }
    </script>
    
{% block js %}

{%endblock%}
</html>